<div class="panel panel-default" style="border-top: none">
  <div class="row">
    <div class="col-md-12 text-center">
      <h1 ng-show="klass">{{klass.name}}学生管理</h1>
      <h1 ng-hide="klass">从左侧班级列表中选择要管理的班级</h1>
    </div>
  </div>
  <!-- //////////////////////////////////////////////////////////////////////////////////////// -->

  <div class="row">
    <div class="col-md-2">
      <!----左侧开始---->
      <ul class="list-group" id="klassmenu">
        <h3><span class="label label-primary"><b>班级列表</b></span></h3>
        <li class="list-group-item list-group-item-default" ng-repeat="klass in klasses" style="cursor:pointer" ng-click="selKlass(klass,$event)">{{klass.name}}</li>
      </ul>
    </div>
    <!----左侧结束---->
    <div class="col-md-10  text-center">
      <div class="row">
        <div class="col-lg-12">
          <ul class="col-md-4 col-lg-4 col-sm-6" ng-repeat="student in students">
            <li>
              <a href="#" ng-click="edit(student)"><b>学号：</b>{{student.code}} <b>姓名：</b>{{student.name}}</a>
              <button type="button" class="close" ng-click="delete(student)">&times;</button>
            </li>
          </ul>
        </div>
      </div>
      <br><br>
      <hr>
      <form class="form-inline" ng-show="klass" name="form" ng-submit="save(form)" novalidate>
        <div class="form-group">
          <label for="inputCode">学生学号：</label>
          <input type="text" class="form-control" id="inputCode" name="code" placeholder="学号" ng-model="code" required>
        </div>
        <div class="form-group">
          <label for="inputName">学生姓名</label>
          <input type="text" class="form-control" id="inputName" name="name" placeholder="姓名" ng-model="name" required>
        </div>
        <hr>
        <div class="form-group">
          <label class="checkbox-inline">
            <input type="checkbox" ng-model="setpass"> 设置密码
          </label>
          <input type="password" ng-show="setpass" class="form-control" id="inputPassword1" ng-model="password" placeholder="Password">
          <button type="submit" class="btn btn-primary" style="margin-left:10px">提交保存</button>
        </div>
        <div class="form-group has-error">
          <p class="help-block" ng-show="(form.code.$error.required || form.name.$error.required) && submitted">
            学号和姓名不能为空.
          </p>
        </div>
      </form>

    </div>
  </div>





</div>
